package com.wh.usercenter3.service;

import com.wh.usercenter3.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wh.usercenter3.pojo.vo.NewTeamVo;
import com.wh.usercenter3.pojo.vo.NewUserVo;

import java.util.List;

/**
* @author 18141
* @description 针对表【user(用户)】的数据库操作Service
* @createDate 2025-02-09 17:07:13
*/

public interface UserService extends IService<User> {

    /**
     * 根据标签查找用户
     * @param tagList
     * @return
     */
    public List<NewUserVo> userByTags(List<String> tagList);


    /**
     * 根据用户id查找队伍
     * @param userId 用户id
     * @return team视图封装类
     */
    NewTeamVo teamByUserId(long userId);

    /**
     * 根据标签推荐用户
     *
     * @param loginUser
     * @return
     */
    List<Long> recommendUser(User loginUser);
}
